<?php
class List_price_model extends Mymodel {
	public $table_name = "list_price";
	public $table_name2 = "list_price_cat";
    function List_price_model()
    {
        parent::Mymodel();
    }
	
	//List Price
	function get_list_price($id=NULL)
	{
		return $this->get_data($this->table_name, $id);
	}
	
	function insert_new_list_price($data)
	{
		return $this->insert_new_record($this->table_name , $data);
	}
	
	function update_list_price_by_id($data, $id)
	{
		return $this->update_by_id($this->table_name, $data, $id);
	}
	
	function delete_list_price_by_id($id)
	{
		return $this->delete_by_id($this->table_name , $id);
	}
	
	//List Price Category
		
	function get_list_price_category($id=NULL)
	{
		return $this->get_data($this->table_name2, $id);
	}

	
}